package com.lywz.biz.common.entity.scenic;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

import com.lywz.core.entity.AbstractEntity;

/**
 * 景区视频实体类
 * 
 * @author Huadi Luojun
 * @date 2010-4-30
 */

@Entity
@Table(name = "t_scenic_video")
@NamedQueries(
        @NamedQuery(name="scenic.getScenicVideo", query="from ScenicVideo where scenicBelongsToId=:scenicId")
        )
public class ScenicVideo extends AbstractEntity {

    private static final long serialVersionUID = 311862076884744822L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    private String name; // 视频名称，也可以是景区名称

    private String videoUrl; // 视频地址

    private Integer scenicBelongsToId; // 所属景区ID

    //////////Setters, Getters and Constructors//////////
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getVideoUrl() {
        return videoUrl;
    }

    public void setVideoUrl(String videoUrl) {
        this.videoUrl = videoUrl;
    }

    public Integer getScenicBelongsToId() {
        return scenicBelongsToId;
    }

    public void setScenicBelongsToId(Integer scenicBelongsToId) {
        this.scenicBelongsToId = scenicBelongsToId;
    }

    /** NULL Constructor */
    public ScenicVideo() {
    }

    /** Full Constructor */
    public ScenicVideo(Integer id, String name, String videoUrl, Integer scenicBelongsToId) {
        super();
        this.id = id;
        this.name = name;
        this.videoUrl = videoUrl;
        this.scenicBelongsToId = scenicBelongsToId;
    }
}
